<?php
class Bootstrap extends \Yaf\Bootstrap_Abstract {
	public function _initTimezone() {
		date_default_timezone_set('Asia/Shanghai');
		error_reporting(E_ALL &~ E_NOTICE);
	}
	public function _initConfig() {
		$config = \Yaf\Application::app()->getConfig();
		\Yaf\Registry::set("config", $config);
		\Yaf\Registry::set("ea_cookie", $config->ea->cookie);
	}
	public function _initNamespace() {
		\Yaf\Loader::getInstance()->registerLocalNamespace('Sy');
	}
	public function _initPlugin(\Yaf\Dispatcher $dispatcher) {
		$route = new RoutePlugin();
		$dispatcher->registerPlugin($route);
	}
	public function _initPrefix() {
		\Yaf\Registry::set("urlPrefix", 'user');
	}
}